package ru.nnstu.medialib.server;

import java.sql.Time;

import org.hibernate.Session;
import org.hibernate.Transaction;

import ru.nnstu.medialib.dao.HibernateUtil;
import ru.nnstu.medialib.dao.SongDAOImpl;
import ru.nnstu.medialib.domain.Album;
import ru.nnstu.medialib.domain.Artist;
import ru.nnstu.medialib.domain.Song;
import ru.nnstu.medialib.service.AlbumService;
import ru.nnstu.medialib.service.AlbumServiceImpl;
import ru.nnstu.medialib.service.ArtistService;
import ru.nnstu.medialib.service.ArtistServiceImpl;
import ru.nnstu.medialib.service.SongService;
import ru.nnstu.medialib.service.SongServiceImpl;

public class Launcher {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Artist art = new Artist("d", new Long(1), new Long(1),
				"yy");
		Album alb = new Album( "alb", new Long(1), "c", art,
				new Time(12));
		Song song = new Song("aaa", alb, art, new Time(500));
		ArtistService ars = new ArtistServiceImpl();
		AlbumService als = new AlbumServiceImpl();
		SongService ss = new SongServiceImpl();
//		ars.addArtist(art);
//		als.addAlbum(alb);
		ss.addSong(song);
	}

}
